home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 49 / Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso / -serious- / graphics / amicad / arexx_english / new.amicad < prev    next >
Text File  |  1999-12-06  |  404b  |  23 lines

  1. /* This file gives you an example for the recommended structure
  2. for a script file called by AmiCAD */
  3.  
  4. options results
  5.  
  6. signal on error     /* for error handling */
  7. signal on syntax
  8.  
  9. /* Your program must be placed there */
  10.  
  11.  
  12. exit
  13.  
  14. /* Handling errors */
  15. syntax:
  16. erreur=RC
  17. 'MESSAGE("Syntax error"+CHR(10)+"in line 'SIGL'"+CHR(10)+"'errortext(erreur)'")'
  18. exit
  19.  
  20. error:
  21. 'MESSAGE("Error in line 'SIGL'")'
  22. exit
  23.